﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.CompanyListModels>" %>
<div class="bor_cor mar_t">
   <div class="bar_org_small module-title" align="center">
        <span class="module-title module-title"><%=ViewData["Title"] %></span>
    </div>
   <div class="new_point">
    	<ul>
        	<% var index = 0;
        	    foreach (var item in Model.Companies)
                {
                    var css = index % 2 == 0 ? string.Empty : "bg_gray";
                    if (index == Model.Companies.Count - 1)
                    {
                        css = css + " bor_none";
                    }                    
                    index += 1;
                    string imgPath = (item.ImagePath != null && item.ImagePath != string.Empty) ? SDT.Lib.Common.Utils.GenThumbnail(item.ID, 62, 55, item.ImagePath, Model.ImagePath, Model.ImageUrl) : SDT.Lib.Common.Globals.DefaultLogo;
                    %>
        	<li class="<%=css %>">
            	<div class="new_point_img"><a href="/company/more/<%=item.ID %>"><img src="<%=imgPath %>" width="62" height="55" class="bor_img" /></a></div>
                <div class="new_point_txt_small"><a href="/company/more/<%=item.ID %>" class="link_gray"><%=Html.Encode(item.Name) %></a></div>
                <div class="clear"></div>
            </li>
            <%} %>
        </ul>
  </div>
</div>